package com.lyncs.ods.req;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author alex
 * @date 2022/03/25 21:36
 * @description
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class ListSkuReq {

    @ApiModelProperty(value = "spu id")
    private Long spuId;

    @ApiModelProperty(value = "货币，默认为sku对应的货币")
    private String currency;

    @ApiModelProperty(value = "请求来源:order/deliver/sku_list。前两个会做汇率转换且不返回amount_json")
    private String source;

    @ApiModelProperty(value = "模糊查询关键字,目前支持名称&货号")
    private String keyword;

    @ApiModelProperty(value = "属性map，key为属性ID，value为属性值")
    private Map<Long, String> attrMap;

    @ApiModelProperty(value = "当前页数")
    @NotNull
    private Integer page;

    @ApiModelProperty(value = "当前页请求数量，默认20")
    @NotNull
    private Integer pageSize = 20;
}
